bitkeeper revision 1.1159.42.7 (4124e09e2XrfLrN-NqhB79T6-OQK4w)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 19 Aug 2004 17:17:18 +0000 (17:17 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 19 Aug 2004 17:17:18 +0000 (17:17 +0000)
Remove padding between foreign page mappings in the blkdev backend.
This also allows us to remove the forced max allocation order in the
buddy page allocator.

linux-2.4.26-xen-sparse/arch/xen/config.in
linux-2.4.26-xen-sparse/arch/xen/defconfig-xen0
linux-2.4.26-xen-sparse/arch/xen/defconfig-xenU
linux-2.6.7-xen-sparse/arch/xen/Kconfig
linux-2.6.7-xen-sparse/arch/xen/configs/xen0_defconfig
linux-2.6.7-xen-sparse/arch/xen/configs/xenU_defconfig
linux-2.6.7-xen-sparse/drivers/xen/blkback/blkback.c

index b77b979c115ba6caff8032c372cb9b482ba72c21..3a89393de30ff633e74b8380aeb33dc11302281c 100644 (file)
@@ -103,8 +103,6 @@ if [ "$CONFIG_HIGHMEM" = "y" ]; then
    bool 'HIGHMEM I/O support' CONFIG_HIGHIO
 fi
 
-define_int CONFIG_FORCE_MAX_ZONEORDER 12
-
 #bool 'Symmetric multi-processing support' CONFIG_SMP
 #if [ "$CONFIG_SMP" = "y" -a "$CONFIG_X86_CMPXCHG" = "y" ]; then
 #   define_bool CONFIG_HAVE_DEC_LOCK y
index 558c70d78ca49131b999444ddb55c6039bf72524..0754c9b8c8371edfa908f373966da733be181411 100644 (file)
@@ -50,7 +50,6 @@ CONFIG_X86_TSC=y
 CONFIG_X86_L1_CACHE_SHIFT=5
 CONFIG_NOHIGHMEM=y
 # CONFIG_HIGHMEM4G is not set
-CONFIG_FORCE_MAX_ZONEORDER=12
 
 #
 # General setup
index 5a1d4803e39841fb2097c2bd32729f2072f114c6..8fad307cd1e68c934ab5bc41d8bf63345774eb6e 100644 (file)
@@ -52,7 +52,6 @@ CONFIG_X86_TSC=y
 CONFIG_X86_L1_CACHE_SHIFT=5
 CONFIG_NOHIGHMEM=y
 # CONFIG_HIGHMEM4G is not set
-CONFIG_FORCE_MAX_ZONEORDER=12
 
 #
 # General setup
index 72733f2efc0e72fedc77bc90cccc7f13a5b5952f..dabb558f2efdf800328820c7d2dba6744a76369e 100644 (file)
@@ -44,12 +44,6 @@ config XEN_WRITABLE_PAGETABLES
 
 endmenu
 
-# Xen's block device backend driver needs 2^12 pages
-config FORCE_MAX_ZONEORDER
-        int
-        default "12" if XEN_PHYSDEV_ACCESS
-        default "11" if !XEN_PHYSDEV_ACCESS
-
 #config VT
 #      bool
 #      default y
index 0a70e9bb26bfcadde0240bc82d82694553ecda4d..ad6c744ebf257d5e13a0d5f6ad82f8a853916fb3 100644 (file)
@@ -10,7 +10,6 @@ CONFIG_NO_IDLE_HZ=y
 #
 CONFIG_XEN_PRIVILEGED_GUEST=y
 CONFIG_XEN_PHYSDEV_ACCESS=y
-CONFIG_FORCE_MAX_ZONEORDER=12
 CONFIG_X86=y
 # CONFIG_X86_64 is not set
 
index fb550771994909197b56c556be9aa303177db404..a56fc3f7d4f0b87ef28cc99084dead68a407330b 100644 (file)
@@ -10,7 +10,6 @@ CONFIG_NO_IDLE_HZ=y
 #
 # CONFIG_XEN_PRIVILEGED_GUEST is not set
 # CONFIG_XEN_PHYSDEV_ACCESS is not set
-CONFIG_FORCE_MAX_ZONEORDER=11
 CONFIG_X86=y
 # CONFIG_X86_64 is not set
 
index 9dc64cc0c398ca0c5c153df3d60698ca7d8a07e1..0af48d6e79a2754a4e50bb5fb53914c56bf6d00f 100644 (file)
 #define MAX_PENDING_REQS 64
 #define BATCH_PER_DOMAIN 16
 
-/*
- * NB. We place a page of padding between each buffer page to avoid incorrect
- * merging of requests by the IDE and SCSI merging routines. Otherwise, two
- * adjacent buffers in a scatter-gather request would have adjacent page
- * numbers: since the merge routines don't realise that this is in *pseudophys*
- * space, not real space, they may collapse the s-g elements!
- */
 static unsigned long mmap_vstart;
 #define MMAP_PAGES_PER_REQUEST \
-    (2 * (BLKIF_MAX_SEGMENTS_PER_REQUEST + 1))
+    (BLKIF_MAX_SEGMENTS_PER_REQUEST + 1)
 #define MMAP_PAGES             \
     (MAX_PENDING_REQS * MMAP_PAGES_PER_REQUEST)
 #define MMAP_VADDR(_req,_seg)                        \
     (mmap_vstart +                                   \
      ((_req) * MMAP_PAGES_PER_REQUEST * PAGE_SIZE) + \
-     ((_seg) * 2 * PAGE_SIZE))
+     ((_seg) * PAGE_SIZE))
 
 /*
  * Each outstanding request that we've passed to the lower device layers has a